<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  

  
  <title>接口功能 | Hexo</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  
  
  
  <meta name="description" content="目录  1. 测试消息列表 接口功能 获取系统站内消息并查看  URL http:&#x2F;&#x2F;192.168.1.82:7000&#x2F;api&#x2F;v2&#x2F;news&#x2F;list  支持格式 JSON  HTTP请求方式 POST  请求参数    参数 必选 类型 说明    endTime false long 时间区间 结束   page ture int 页   rootType ture int 消息类型 0:">
<meta property="og:type" content="article">
<meta property="og:title" content="接口功能">
<meta property="og:url" content="http://yoursite.com/2020/03/12/%E6%8E%A5%E5%8F%A3%E5%8A%9F%E8%83%BD/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:description" content="目录  1. 测试消息列表 接口功能 获取系统站内消息并查看  URL http:&#x2F;&#x2F;192.168.1.82:7000&#x2F;api&#x2F;v2&#x2F;news&#x2F;list  支持格式 JSON  HTTP请求方式 POST  请求参数    参数 必选 类型 说明    endTime false long 时间区间 结束   page ture int 页   rootType ture int 消息类型 0:">
<meta property="og:locale" content="en_US">
<meta property="article:published_time" content="2020-03-12T00:24:06.129Z">
<meta property="article:modified_time" content="2020-03-10T04:43:28.661Z">
<meta property="article:author" content="John Doe">
<meta name="twitter:card" content="summary">
  
    <link rel="alternate" href="/atom.xml" title="Hexo" type="application/atom+xml">
  
  
    <link rel="icon" href="/images/v2-4f7a5f09e8d39964374a0b0144d36174_hd.jpg">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  
<link rel="stylesheet" href="/css/style.css">

  
<link rel="stylesheet" href="/css/highlight.css">

<meta name="generator" content="Hexo 4.2.0"></head>

<body>
  <div id="fullpage" class="mobile-nav-right">
    
      <div id="wrapper" title="图片来自网络">
    
    
      <header id="header">
  <div id="nav-toggle" class="nav-toggle"></div>
  <div class="head-box global-width">
    <nav class="nav-box nav-right">
      
        <a class="nav-item" href="/" title
        
        >首页</a>
      
        <a class="nav-item" href="/archives" title
        
        >归档</a>
      
        <a class="nav-item" href="/" title
        
        >理财</a>
      
    </nav>
  </div>
</header>
      <div id="middlecontent" title class="global-width sidebar-right">
        <section id="main"><article id="post-接口功能" class="article global-container article-type-post" itemscope itemprop="blogPost">
  
    <header class="article-header">
      
  
    <h1 class="article-title" itemprop="name">
      接口功能
    </h1>
  

    </header>
  
  <div class="article-meta">
    <a href="/2020/03/12/%E6%8E%A5%E5%8F%A3%E5%8A%9F%E8%83%BD/" class="article-date">
  <time datetime="2020-03-12T00:24:06.129Z" itemprop="datePublished">2020-03-12</time>
</a>
    
    
  </div>
  
    <span id="busuanzi_container_page_pv">
      本文总阅读量<span id="busuanzi_value_page_pv"></span>次
    </span>
  

  <div class="article-inner">
    
    <div class="article-content article-content-cloud" itemprop="articleBody">
      
        <p>目录</p>
<hr>
<p><strong>1. 测试消息列表</strong></p>
<h6 id="接口功能"><a href="#接口功能" class="headerlink" title="接口功能"></a>接口功能</h6><blockquote>
<p>获取系统站内消息并查看</p>
</blockquote>
<h6 id="URL"><a href="#URL" class="headerlink" title="URL"></a>URL</h6><blockquote>
<p><a href="www.api.com/index.php">http://192.168.1.82:7000/api/v2/news/list</a></p>
</blockquote>
<h6 id="支持格式"><a href="#支持格式" class="headerlink" title="支持格式"></a>支持格式</h6><blockquote>
<p>JSON</p>
</blockquote>
<h6 id="HTTP请求方式"><a href="#HTTP请求方式" class="headerlink" title="HTTP请求方式"></a>HTTP请求方式</h6><blockquote>
<p>POST</p>
</blockquote>
<h6 id="请求参数"><a href="#请求参数" class="headerlink" title="请求参数"></a>请求参数</h6><blockquote>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="left">必选</th>
<th align="left">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody><tr>
<td align="left">endTime</td>
<td align="left">false</td>
<td align="left">long</td>
<td>时间区间 结束</td>
</tr>
<tr>
<td align="left">page</td>
<td align="left">ture</td>
<td align="left">int</td>
<td>页</td>
</tr>
<tr>
<td align="left">rootType</td>
<td align="left">ture</td>
<td align="left">int</td>
<td>消息类型 0:Pc端所有消息 1系统消息 2作业确认 3作业变更 4审核消息 5配送消息 6销售入库消息 7出库消息 8退库消息 9APP作业消息 10APP系统消息</td>
</tr>
<tr>
<td align="left">size</td>
<td align="left">ture</td>
<td align="left">int</td>
<td>条数</td>
</tr>
<tr>
<td align="left">startTime</td>
<td align="left">false</td>
<td align="left">long</td>
<td>时间区间 起始</td>
</tr>
</tbody></table>
</blockquote>
<h6 id="返回字段"><a href="#返回字段" class="headerlink" title="返回字段"></a>返回字段</h6><blockquote>
<table>
<thead>
<tr>
<th align="left">返回字段</th>
<th align="left">字段类型</th>
<th align="left">说明</th>
</tr>
</thead>
<tbody><tr>
<td align="left">status</td>
<td align="left">int</td>
<td align="left">返回结果状态。0：正常；1：错误。</td>
</tr>
<tr>
<td align="left">company</td>
<td align="left">string</td>
<td align="left">所属公司名</td>
</tr>
<tr>
<td align="left">category</td>
<td align="left">string</td>
<td align="left">所属类型</td>
</tr>
</tbody></table>
</blockquote>
<h6 id="接口示例"><a href="#接口示例" class="headerlink" title="接口示例"></a>接口示例</h6><p>curl -X POST –header “Content-Type: application/json” –header “Accept: <em>/</em>“ –header “Authorization: tokentokentoken” -d “{<br>  &quot;endTime&quot;: 0,<br>  &quot;page&quot;: 0,<br>  &quot;rootType&quot;: 0,<br>  &quot;size&quot;: 0,<br>  &quot;startTime&quot;: 0<br>}” “<a href="http://192.168.1.82:7000/api/v2/news/list&quot;" target="_blank" rel="noopener">http://192.168.1.82:7000/api/v2/news/list&quot;</a></p>

      
    </div>
    
      <footer class="article-footer">
        完
      </footer>
    
  </div>
  
    
<nav id="article-nav">
  <div class="article-nav-block">
    
      <a href="/2020/03/12/%E9%9D%A2%E8%AF%95/" id="article-nav-newer" class="article-nav-link-wrap">
        <strong class="article-nav-caption"></strong>
        <div class="article-nav-title">
          
            面试
          
        </div>
      </a>
    
  </div>
  <div class="article-nav-block">
    
      <a href="/2020/03/10/hello-world%20-%20%E5%89%AF%E6%9C%AC/" id="article-nav-older" class="article-nav-link-wrap">
        <div class="article-nav-title">Hello World</div>
        <strong class="article-nav-caption"></strong>
      </a>
    
  </div>
</nav>

    <link rel="stylesheet" href="/css/gitment.css"> 
<script src="/js/gitment.js"></script>

<div id="gitmentContainer"></div>

<script>
var gitment = new Gitment({
  owner: '',
  repo: '',
  oauth: {
    client_id: '',
    client_secret: '',
  },
})
gitment.render('gitmentContainer')
</script>

  
  
</article>
</section>
        <aside id="sidebar">
  
    <div class="widget-box">
  <div class="avatar-box">
    <img class="avatar" src="/images/v2-4f7a5f09e8d39964374a0b0144d36174_hd.jpg" title="图片来自网络"></img>
    <h3 class="avatar-name">
      
        星星的鑫
      
    </h3>
    <p class="avatar-slogan">
      不积跬步,无以至千里 ⚘⚘⚘⚘⚘⚘⚘⚘⚘⚘                好风光似虚似幻,少一分钟又如何
    </p>
  </div>
</div>


  
    
  <div class="widget-box">
    <h3 class="widget-title">Categories</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%90%8E%E5%8F%B0%E5%BC%80%E5%8F%91/">后台开发</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-box">
    <h3 class="widget-title">Tags</h3>
    <div class="widget">
      <ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/tags/java/" rel="tag">java</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-box">
    <h3 class="widget-title">Tag Cloud</h3>
    <div class="widget tagcloud">
      <a href="/tags/java/" style="font-size: 10px;">java</a>
    </div>
  </div>

  
    
  <div class="widget-box">
    <h3 class="widget-title">归档</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/03/">March 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/05/">May 2018</a></li></ul>
    </div>
  </div>

  
    
  <div class="widget-box">
    <h3 class="widget-title">最新文章</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2020/03/12/%E9%9D%A2%E8%AF%95/">面试</a>
          </li>
        
          <li>
            <a href="/2020/03/12/%E6%8E%A5%E5%8F%A3%E5%8A%9F%E8%83%BD/">接口功能</a>
          </li>
        
          <li>
            <a href="/2020/03/10/hello-world%20-%20%E5%89%AF%E6%9C%AC/">Hello World</a>
          </li>
        
          <li>
            <a href="/2020/03/09/hello-world/">Hello World</a>
          </li>
        
          <li>
            <a href="/2018/05/30/Untitled/">httpclent调用webservice</a>
          </li>
        
      </ul>
    </div>
  </div>

  
      <div class="widget-box">
    <h3 class="widget-title">友链</h3>
    <div class="widget">
      
        <a style="display: block;" href="https://yiluyanxia.github.io/" title target='_blank'
        >♥(ˆ◡ˆԅ)鑫</a>
      
    </div>
  </div>
  <div class="widget-box">
      <h3 class="widget-title">友链2</h3>
      <div class="widget">
          
              <a style="display: block;" href="https://yiluyanxia.github.io/" title target='_blank'
              >♥(ˆ◡ˆԅ)鑫</a>
          
      </div>
  </div>

  
</aside>
      </div>
      <footer id="footer">
  <div class="foot-box global-width">
    &copy; 2020 John Doe &nbsp;&nbsp;
    Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
    &nbsp;|&nbsp;主题 <a href="https://github.com/yiluyanxia/hexo-theme-antiquity" target="_blank" rel="noopener">antiquity</a>
    <br>
    <script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <span id="busuanzi_container_site_pv">不蒜子告之   阁下是第<span id="busuanzi_value_site_pv"></span>个访客</span>
  </div>
</footer>

      <script src="https://code.jquery.com/jquery-2.0.3.min.js"></script>
<script>
if (!window.jQuery) {
var script = document.createElement('script');
script.src = "/js/jquery-2.0.3.min.js";
document.body.write(script);
}
</script>

  
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css">

  
<script src="/fancybox/jquery.fancybox.pack.js"></script>




<script src="/js/script.js"></script>




    </div>
    <nav id="mobile-nav" class="mobile-nav-box">
  <div class="mobile-nav-img mobile-nav-top"></div>
  
    <a href="/" class="mobile-nav-link">首页</a>
  
    <a href="/archives" class="mobile-nav-link">归档</a>
  
    <a href="/" class="mobile-nav-link">理财</a>
  
  <div class="mobile-nav-img  mobile-nav-bottom"></div>
</nav>    
  </div>
</body>
</html>